package com.TTBook.core.publisher.model;

import java.io.Serializable;

public class BookPublisher implements Serializable {
    private String pressid;

    private String pressName;

    private static final long serialVersionUID = 1L;

    public String getPressid() {
        return pressid;
    }

    public void setPressid(String pressid) {
        this.pressid = pressid == null ? null : pressid.trim();
    }

    public String getPressName() {
        return pressName;
    }

    public void setPressName(String pressName) {
        this.pressName = pressName == null ? null : pressName.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookPublisher)) {
            return false;
        }
        BookPublisher other = (BookPublisher) that;
        return this.getPressid() == null ? other == null : this.getPressid().equals(other.getPressid())
            && this.getPressName() == null ? other == null : this.getPressName().equals(other.getPressName());
    }

    public int hashCode() {
        int hash = 23;
        if (getPressid() != null) {
            hash *= getPressid().hashCode();
        }
        if (getPressName() != null) {
            hash *= getPressName().hashCode();
        }
        return hash;
    }
}